<?php

namespace App\Models\Fy;

use App\Models\BaseModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class FyRegionBankModel extends BaseModel
{
    use HasFactory;

    protected $table = "fy_region_bank";

    public static function getBankNo(string $bankTypeCode, string $regionBankCode): array
    {
        return self::query()
            ->where("bankTypeCode", $bankTypeCode)
            ->where("regionBankCode", $regionBankCode)
            ->select(["bankNo", "name"])
            ->get()
            ->toArray();
    }
}
